package com.qingxin.jcdw.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.hibernate.annotations.GenericGenerator;

/**
 * 检测单位表
 */
@Entity
@Table(name = "jcdw")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class Jcdw extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {
	
	private static final long serialVersionUID = 5165724770084125604L;
	
	
	private String jcdwid;
	private String jcdwname;
	private String responsible; //负责人
	private String address;
	private String phone;
	
	
	
	public Jcdw(String jcdwid, String jcdwname, String responsible,
			String address, String phone) {
		super();
		this.jcdwid = jcdwid;
		this.jcdwname = jcdwname;
		this.responsible = responsible;
		this.address = address;
		this.phone = phone;
	}

	public Jcdw(String jcdwid, String jcdwname) {
		super();
		this.jcdwid = jcdwid;
		this.jcdwname = jcdwname;
	}

	public Jcdw() {
		super();
		// TODO Auto-generated constructor stub
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "jcdwid", unique = true, nullable = false, length = 32)
	public String getJcdwid() {
		return jcdwid;
	}

	public void setJcdwid(String jcdwid) {
		this.jcdwid = jcdwid;
	}

	@Column(name="jcdwname" , length=50)
	public String getJcdwname() {
		return jcdwname;
	}

	public void setJcdwname(String jcdwname) {
		this.jcdwname = jcdwname;
	}

	@Column(name="responsible" , length=20)
	public String getResponsible() {
		return responsible;
	}

	public void setResponsible(String responsible) {
		this.responsible = responsible;
	}

	@Column(name="address" , length=100)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name="phone" , length=20)
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	
}